package com.tansuo365.test1.service.otherservice.impl;

import com.tansuo365.test1.bean.otherbean.DWuliao;
import com.tansuo365.test1.mapper.othermapper.DWuliaoMapper;
import com.tansuo365.test1.service.otherservice.DWuliaoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DWuliaoServiceImpl implements DWuliaoService {
    @Resource
    private DWuliaoMapper dWuliaoMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return dWuliaoMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int deleteBatchByPKArr(Integer[] ids) {
        return dWuliaoMapper.deleteBatchByPKArr(ids);
    }

    @Override
    public int deleteBatchByWidArr(Integer[] ids) {
        return dWuliaoMapper.deleteBatchByWidArr(ids);
    }

    //用于删除一级菜单下面的所有详细列表(包括二级下面)
    @Override
    public int deleteBatchByOidArr(Integer[] ids) {
        return dWuliaoMapper.deleteBatchByOidArr(ids);
    }

    @Override
    public int deleteByWid(int w_id) {
        return dWuliaoMapper.deleteByWid(w_id);
    }

    @Override
    public int deleteByOid(int o_id) {
        return dWuliaoMapper.deleteByOid(o_id);
    }
    
    @Override
    public int insertSelective(DWuliao dWuliao) {
        return dWuliaoMapper.insertSelective(dWuliao);
    }

    @Override
    public DWuliao selectByPrimaryKey(Integer id) {
        return dWuliaoMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<DWuliao> findByWaiId(int w_id) {
        return dWuliaoMapper.findByWaiId(w_id);
    }

    @Override
    public List<DWuliao> findSelective(DWuliao dWuliao) {
        return dWuliaoMapper.findSelective(dWuliao);
    }

    @Override
    public int updateByPrimaryKeySelective(DWuliao dWuliao) {
        return dWuliaoMapper.updateByPrimaryKeySelective(dWuliao);
    }

}
